#ifndef QS_AIP650_H_
#define QS_AIP650_H_
#include "qs_config.h"
enum I2CStatus {
    I2C_OK = 0,
    I2C_ERROR_ACK = -1,
    I2C_ERROR_TIMEOUT = -2,
    I2C_ERROR_CHECKSUM = -3
};
#define I2C_DELAY                       1

void qs_gpio_iic_init(void);
void qs_gpio_i2c_start() ;
void qs_gpio_i2c_stop();
int qs_gpio_i2c_write_byte(int byte);
int qs_gpio_i2c_read_byte(int ack);
void qs_aip650_SetDisplay(uint8_t brightness);
uint8_t qs_aip650_key_read(void);
uint16_t qs_aip650_key_get(void);
void qs_aip650_digi_data_send(uint8_t dig,uint8_t num);
void qs_aip650_NumberNull_Display(void);
void qs_aip650_Error_Display(uint8_t num);
void qs_aip650_Numer1Bit_Display(uint8_t num);
void qs_aip650_Number2Bit_Display(uint8_t num);
void qs_aip650_Invalid_Display(void);
void qs_aip650_init(void);
void qs_aip650_SetIdleDisplay(void);
void qs_aip650_Provision_Display(void);
#endif